package com.reef.entity;



import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor

@Entity
@Table(name = "book")//设置《图书表》表名
@JsonIgnoreProperties(value = {"hibernateLazyInitializer","handler"})//懒加载
public class Book {
@Id //设置主键
@GeneratedValue(strategy = GenerationType.IDENTITY)//主键生成的机制	
	private int bookId ;//图书id
	private String name;//书名
	private String author;//作者
	private String publish;//出版社
	private String isbn;//书号
	private String introduction;//简介
	private String language;//语言
	private String price;//价格
	private String pubDate;//发布日期
	private int classId;//图书类别编号
	private int number;//数量
	private int lendnum;//被借阅次数
	private String position;//位置
	
	
	private Integer res1;
	private Integer res2;
	private Integer res3;
	private String res4;
	private String res5;
	private String res6;
	public Book(int bookId, String name, String author, String publish, String isbn, String introduction,
			String language, String price, String pubDate, int classId, int number, int lendnum, String position) {
		super();
		this.bookId = bookId;
		this.name = name;
		this.author = author;
		this.publish = publish;
		this.isbn = isbn;
		this.introduction = introduction;
		this.language = language;
		this.price = price;
		this.pubDate = pubDate;
		this.classId = classId;
		this.number = number;
		this.lendnum = lendnum;
		this.position = position;
	}
	
	}
	

	
	
	

